package org.yxj.zoomcustommobile.ui;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import org.yxj.customlibrary.CustomMetalBarActivity;
import org.yxj.customlibrary.util.CustomConstantUtil;
import org.yxj.zoomcustommobile.R;

public class MainActivity extends AppCompatActivity {

    String url = "https://img30.360buyimg.com/pop/s590x470_jfs/t1/144208/3/28055/71196/62e007dfEeb02565a/2034a0ad22161a01.jpg.webp" ;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        findViewById(R.id.btn_).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Bundle bundle = new Bundle();
                bundle.putString(CustomConstantUtil.CustomImRes, url);
                startActivity(new Intent(
                        MainActivity.this, CustomMetalBarActivity.class)
                        .putExtra(CustomConstantUtil.Data,bundle));
            }
        });
    }
}